#/bin/bash/

if [ -f /tmp/userinfo.txt ];then
	rm -rf /tmp/userinfo.txt
fi

if [ ! `which pwgen` ];then
	apt install -y pwgen
fi

for i in `seq -w 0 09 `
do
	p=`pwgen -s 12 -0`
	useradd user-${i} && echo "${p}"|passwd --stdin user-${i}
	echo "user-${i}:${p}">>/tmp/userinfo.txt

done
